var mongoose = require('mongoose');

var schemaOptions = {
  timestamps: true,
  toJSON: {
    virtuals: true
  }
};

var campanhaSchema = new mongoose.Schema({
  urlname: {type: String, unique: true},
  name: String,
  logo_pic: String,
  weneed: String,
  wehave: String,
  description: String,
  photo_pic: String,
  paypal_link: String,
  paypal_email: String,
  pagseguro: String,
  vakinha: String,
  facebook_url: String,
  instagram_url: String
}, schemaOptions);


var Campanha = mongoose.model('Campanha', campanhaSchema);

module.exports = Campanha;
